﻿<%@ Page Title="" Language="C#" MasterPageFile="../Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SailHero.Soft.FrameWork.Models.SYS_DEPARTMENT>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    新增部门
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
 <script type="text/javascript">

     $(function () {
         $("#cancel").click(function () {
             window.location = "/Dept/index";
         });

         $("#submit").click(function () {
             var deptName = $("#DeptCName").val();
             if (deptName == "") {
                 $.messager.alert("提示信息", "部门名称不能为空", "info");
                 return false;
             }
             return true;
         });
     });
    </script>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="TabTitle" runat="server">
新增部门
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div id="main_zone">
  <table width="99%" style="text-align:left;" border="0" align="center"  cellpadding="3" cellspacing="1">
      <tr>
          <td width="18%" class="left_title_1">
              部门名称
          </td>
          <td width="32%"><%= Html.TextBoxFor(mod=>mod.DEPTCNAME) %>
          </td>
          <td width="18%" class="left_title_1">
              部门经理
          </td>
         

          <td width="32%"><%=Html.DropDownList("userList","请选择")%>
          </td>
      </tr>
    <tr>
      <td class="left_title_2">部门电话</td>
      <td><%=Html.TextBoxFor(mod=>mod.TELEPHONE) %></td>
      <td class="left_title_2">传真</td>
      <td><%=Html.TextBoxFor(mod=>mod.FAX) %></td>
    </tr>
    <tr>
      <td class="left_title_1">父部门</td>
      <td>
          <%=Html.DropDownList("deptList","请选择")%>
      </td>
       <td class="left_title_1">排序号</td>
      <td><%=Html.TextBoxFor(mod=>mod.ORDERNUM) %></td>
    </tr>
    <tr>
      <td class="left_title_2">是否可用</td>
      <td><input id="isEnable" name="isEnable" checked="checked" type="checkbox" /></td>
      <td class="left_title_2"></td>
      <td></td>
    </tr>
    <tr>
      <td colspan="4" class="left_title_1" style="text-align:center;">
      <input id="submit" type="submit" value="保存" />
       <input id="cancel" type="button" value="取消" />
      </td>
    </tr> 
  </table>
</div>
</asp:Content>